package com.openbravo.pos.panels.link;

import cn.ekuma.epos.datalogic.I_DataLogicSales;
import com.openbravo.bean.Product;
import com.openbravo.bean.crm.viewbean.ProductCustomerView;
import com.openbravo.data.basic.BasicException;
import com.openbravo.data.gui.MessageInf;
import com.openbravo.pos.panels.link.model.ProductCustomerViewTableModel;

public class JProductCustomerViewPanel extends AbstractProductLinkTablePanel<ProductCustomerView>{

	public JProductCustomerViewPanel(I_DataLogicSales dlSales) {
		super(dlSales, new ProductCustomerViewTableModel());
	}


	@Override
	public void baseBeanChanged(Product o) {
		 try {
	           tableModel.resert(dlSales.listProductCustomerViewByProductId(baseBeanID));
	       } catch (BasicException ex) {
	    	   new MessageInf(ex).show(this);
	    	   tableModel.resert(null);
	       }
		
	}
	
	
	
	
}
